﻿<%@ Control Language="C#" EnableViewStatE="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<style type="text/css">
#ctl00_MainerRegion_ZS_BCFAControl___GridList_Div1
{
	border-collapse: collapse;
	border: 1px solid #74a4c0;
	background-color: #FFFFFF;	
	text-align:center;
	color:#a30101;
}
</style>
<script type="text/javascript">
    function select_project(type) {
        var url = 'ZS_SelectProject.aspx?TYPE=' + type + '&rdm=' + Math.random();
        var feature = "dialogWidth:" + 710 + "px;dialogHeight:" + 530 + "px;scroll:yes;status:no;help:no;center:1";

        var project_info = window.showModalDialog(url, '', feature);

        if (project_info != undefined && project_info.length > 1) {
            if (type == "xzxm") {
                document.getElementById('<%=txtPID.ClientID %>').value = project_info[0];
                document.getElementById('<%=立项号.ClientID %>').value = project_info[1];
            }
            if (type == "khyh") {
                document.getElementById('<%=txt缴纳银行.ClientID %>').value = project_info[1];
            }
        }
    }
    function checkNull(){
        var tt = document.getElementById('<%=txt兑付时间.ClientID %>').value;
        var tt1 = document.getElementById('<%=txt单据编号.ClientID %>').value;
        var msg = "";
        if (tt == null || tt == "") { msg += "兑付时间 "; }
        if (tt1 == null || tt1 == "") { msg += "单据编号 "; }
        if (msg == "") { return true; } else {
            msg += "未填写！";
            alert(msg);
            return false;
         }
    }
</script> 
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font id="Font1" style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black;text-indent:1em;" runat="server">
                    新增面积补偿款情况详细 </font>
            </td>
        </tr>
    </table>
<table border='1' cellpadding='0' cellspacing='0' id="compensationfundestimate" style='border-collapse: collapse;
            table-layout: fixed; width: 99%; text-align: center' class="window_tab_list">
            <tr>
                    <th colspan="4" style="text-align: center; line-height: 20px;">
                        征收补偿款基本情况</th>
                </tr>
                <tr>
                        <td align="right" style="width:120px;">
                            单据编号:</td>
                        <td style="width: 260px;padding-left:2px; text-align:left">
                            <asp:TextBox ID="txt单据编号" runat="server"></asp:TextBox></td>
                        <td align="right" style="width:120px;">
                            身份证号:</td>
                        <td style="padding-left:2px; text-align:left">
                            <asp:TextBox ID="txt身份证号" runat="server" ToolTip="身份证"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td align="right" style="width:120px;">
                            缴纳人:</td>
                        <td style="width: 260px;padding-left:2px; text-align:left">
                            <asp:TextBox ID="txt缴纳人" runat="server"></asp:TextBox></td>
                        <td align="right" style="width:120px;">
                            缴纳时间:</td>
                        <td style="width: 260px;padding-left:2px; text-align:left">
                            <CBW:MPCalendar ID="txt缴纳时间" runat="server" Width="153" ValidatorTime="false" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width:120px;">
                            缴纳金额(元):</td>
                        <td style="width: 260px; height: 21px;padding-left:2px; text-align:left">
                            <asp:TextBox ID="txt缴纳金额" runat="server"></asp:TextBox></td>
                        <td align="right" style="width:120px;">
                            缴纳银行:</td>
                        <td style="height: 21px;text-align:left; padding-left:2px">
                            <asp:TextBox ID="txt缴纳银行" runat="server" onfocus="this.blur()"></asp:TextBox>
                      <input type="button" value="选择" onclick="select_project('khyh');" class="button" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right" style="width:120px;">
                            立项号:
                        </td>
                        <td style="width: 265px;padding-left:2px" align="left">
                            <asp:TextBox ID="立项号" runat="server" Width="70%" onfocus="this.blur()"></asp:TextBox>
                            <input type="button" value="选择项目" onclick="select_project('xzxm');" class="button" />
                        </td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td align="right" style="width:120px;">兑付情况:</td>
                        <td align="left" style="padding-left:2px">
                            <asp:DropDownList ID="ddl兑付情况" runat="server">
                                <asp:ListItem Text="未兑付" Value="0"></asp:ListItem>
                                <asp:ListItem Text="已兑付" Value="1"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td align="right" style="width:120px;">
                            兑付时间:</td>
                        <td style="text-align:left; padding-left:2px">
                            <CBW:MPCalendar ID="txt兑付时间" runat="server" Width="153" />
                        </td>
                    </tr>
                    <tr>
                        <td align="right">附件信息:</td>
                        <td colspan="3">
                            <asp:TextBox ID="txt备注" runat="server" TextMode="MultiLine" Width="100%" Height="49px"></asp:TextBox>
                        </td>
                    </tr>
                <tr>
                    <td colspan="4" align="center">
                        <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return checkNull();" />
                    &nbsp;&nbsp;
                        <input id="Button1" type="button" value="返回" onclick="javascript:window.location.href=('ZJ_XZMJBCJ.aspx');" />
                    </td>
                </tr>
        </table>
        <div style="display:none;">
            <asp:TextBox ID="txtPID" runat="server"></asp:TextBox>
            <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        </div>